package com.mfangsoft.zhuangjialong.article.mapper;

import com.mfangsoft.zhuangjialong.article.model.ArticleCollectionEntity;
import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;
@WriterRepository
public interface ArticleCollectionEntityMapper {
    /**
     * 通过主键删除  
     *
     * @MLTH_generated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 插入数据  
     *
     * @MLTH_generated
     */
    int insert(ArticleCollectionEntity record);

    int insertSelective(ArticleCollectionEntity record);

    /**
     * 通过主键查询数据 
     *
     * @MLTH_generated
     */
    ArticleCollectionEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleCollectionEntity record);

    /**
     * 通过主键更新数据  
     *
     * @MLTH_generated
     */
    int updateByPrimaryKey(ArticleCollectionEntity record);

    /**
     * 通过文章id获取收藏数量
     * @param id
     * @return
     */
	Integer getCollectNumByArticleId(Long id);
}